<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta name="" charset="utf-8" content=""/>
    </head>
    <body>
    	<input type="" name="" id="" value="11" class="inputVal"/>
       <button class="btn">请点击</button> 
       <select name="" class="selectVal">
       	<option value=""></option>
       </select>
       <button class="sbtn">请点击</button>
    </body>
</html>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script type="text/javascript">
	$(function(){
		var btn=0;
		inputValue();
		selectValue()
	})
	//拿到input的值 
	function inputValue(){
		$(".btn").click(function(){
			btn=$(".inputVal").val()
			console.log($(".inputVal").val())
		})
	}
	function selectValue(){
		$(".sbtn").click(function(){
			console.log(btn)
			console.log($(".selectVal").val())
		})
	}
</script>
